
class F{
    public String name = "111";
    public void func(){
        System.out.println(1);
    }
}
class S extends F{
    public String name = "222";
    public void func(){
        System.out.println(2);
    }
}
public class Test2 {
    public static void main(String[] args) {
        F f1 = new S();
        System.out.println(f1.name);
        f1.func();
    }
}
